#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include"mydata.h"

namespace Ui {
    class Dialog;
}

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QWidget *parent = 0);
     explicit Dialog(QString &ip,QString  &build,QString  &unit,QString  &room,QString &admin,QWidget *parent);
     void paintEvent(QPaintEvent *);
    ~Dialog();
private:
    Ui::Dialog *ui;
    bool cse;

private slots:
    void on_buttonBox_accepted();
signals:
    void sendMassge(Mydata &);
};

#endif // DIALOG_H
